<!-- 公告信息展示 -->
<template>
    <div class="notice">
        <el-timeline style="max-width: 600px">
            <el-timeline-item v-for="(activity, index) in activities" :key="index" :timestamp="activity.createdDt">
                {{ activity.title }}
            </el-timeline-item>
        </el-timeline>
    </div>
</template>

<script setup lang="ts">
// 接收父组件传递过来的公告数组
defineProps(['activities'])
</script>

<style lang="scss" scoped></style>